<%@ attribute name="page" type="java.lang.Integer" required="true"%>
<%@ attribute name="url" type="java.lang.String" required="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="pagination">
  <ul>
    <li <c:if test="${page<=1}">class="disabled"</c:if> ><a href="${url}${page-1}">Prev</a></li>
    <c:forEach var="i" begin="1" end="10">
    <li <c:if test="${i==page}">class="active"</c:if> ><a href="${url}${i}">${i}</a></li>
    </c:forEach>
    <li><a href="${url}${page+1}">Next</a></li>
  </ul>
</div>








